package com.yaozheng.vocationaltraining.dialog;

import net.sf.json.JSONObject;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.Gravity;

import com.yaozheng.vocationaltraining.R;
import com.yaozheng.vocationaltraining.service.HomeAnswerTaskService;
import com.yaozheng.vocationaltraining.view.HomeAnswerTaskView;
import com.yaozheng.vocationaltraining.view.HomeAnswerTaskView_;
import com.yaozheng.vocationaltraining.view.HomeSignTaskView_;

/**
 * 主页答题任务对话框
 * 
 * @author Administrator
 * 
 */
public class HomeAnswerTaskDialogFragment extends BaseDialog {
	HomeAnswerTaskView homeAnswerTaskView;

	public HomeAnswerTaskDialogFragment(Context context) {
		super(context, R.style.baseDialogStyleTheme, true, Gravity.CENTER);
	}

	@Override
	public void setContentView() {
//		homeAnswerTaskView = new HomeAnswerTaskView_(baseActivity,
//				HomeAnswerTaskDialogFragment.this);
//		homeAnswerTaskView.onFinishInflate();
//		super.setContentView(homeAnswerTaskView);
	}

	/**
	 * 加载数据
	 * 
	 * @param jsonObject
	 */
	public void loadData(JSONObject jsonObject) {
		if (homeAnswerTaskView != null) {
			homeAnswerTaskView.loadData(jsonObject);
		}
	}

	public void setHomeAnswerTaskService(
			HomeAnswerTaskService homeAnswerTaskService) {
//		if (homeAnswerTaskView != null) {
//			homeAnswerTaskView.setHomeAnswerTaskService(homeAnswerTaskService);
//		}
	}
}
